package cn.edu.cqu.fredyvia.forum.mapper;

import cn.edu.cqu.fredyvia.forum.entity.CommentThumb;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fredyvia
 * @since 2021-07-10
 */
@Mapper
public interface CommentThumbMapper extends BaseMapper<CommentThumb> {
//    @Select("select `comment_thumb`.user_id from `comment_thumb` where `comment_thumb`.user_id=#{user_id} and `comment_thumb`.comment_id=#{id};")
//    List<String> haveRecord(@Param("user_id") int user_id,@Param("id") int id);
//    @Insert("INSERT INTO `comment_thumb` (user_id,comment_id)VALUES (#{user_id},#{id});")
//    void thumb(@Param("user_id") int user_id,@Param("id") int id);
}
